#ifndef MY_PEANUT_H
#define MY_PEANUT_H

#include <string>
#include "cg/cg.h"
#include "MyPhysics.h"
#include "FreeCamera.h"
#include "ITargetable.h"
#include "ICollidable.h"

namespace PeanutQuest {

	class MyPeanut : public cg::Entity,
		public ITargetable,
		public ICollidable,
		public cg::IDrawListener,
		public cg::IUpdateListener
	{
	private:
		MyPhysics _physics;

		bool _debugMode;

		int _modelDL;
		void makeMaterial();

		int _materialDL;
		void makeModel();

		std::string _winMessage;

	public:
		MyPeanut(std::string id);
		~MyPeanut();

		bool isHidden;
		
		float life;

		void init();
		void update(unsigned long elapsed_millis);
		void draw();

		cg::Vector3d getPosition();
		cg::Vector3d getFront();

		std::string getWinMessage();
		void setWinMessage(std::string message);
		void decPeanutLife();
		int getPeanutLife();
	};
}

#endif